using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework;


namespace gears
{
    class TapHandler
    {
        private static List<Vector2> touched_points = new List<Vector2>();
        private static TouchCollection touch_collection;

        public static List<Vector2> GetTouches()
        {   
            touch_collection = TouchPanel.GetState();
            touched_points.Clear();

            foreach (TouchLocation location in touch_collection )
            {
                touched_points.Add(new Vector2(location.Position.X, location.Position.Y));
            }

            return touched_points;
        }
    }
}
